package com.qk.ezbuy.service;

import com.github.pagehelper.PageInfo;
import com.qk.ezbuy.pojo.Product;
import com.qk.ezbuy.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface ProductService {
    /**
     * 查看所有商品
     * @return
     */
    PageInfo<Product> selectPage(int pageNum, int pageSize);
    /**
     * 事务删除
     */
    int updateByPrimaryKeySelective(Product record);


    List<Product> selectAll();

    Product selectById(Integer id);

    PageInfo<Product> selectByParentId(Map<String,Object> map);
}
